]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
workspacesView: Clip the SecondaryMonitorDisplay instead of the view
authorJonas Dreßler <verdre@v0yd.nl>
Wed, 3 Mar 2021 11:37:51 +0000 (12:37 +0100)
committerMarge Bot <marge-bot@gnome.org>
Tue, 4 May 2021 14:16:46 +0000 (14:16 +0000)
Make the SecondaryMonitorDisplay a bit more similar to the
ControlsManager container on the primary monitor, and clip that widget
instead of the WorkspacesViews on secondary monitors.

This will allow us to overpaint the WorkspacesView allocation and paint
the WindowPreview overlays like the title and close button outside the
allocation with the next commit.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/1813>

js/ui/workspacesView.js

index 50259041870831f03a3474614cc9d1b292df2f89..f34e6d8384544d0656c2547ee7becfcdc77f5161 100644 (file)
@@ -28,7 +28,6 @@ var WorkspacesViewBase = GObject.registerClass({
     _init(monitorIndex, overviewAdjustment) {
         super._init({
             style_class: 'workspaces-view',
-            clip_to_allocation: monitorIndex !== Main.layoutManager.primaryIndex,
             x_expand: true,
             y_expand: true,
         });
@@ -615,6 +614,7 @@ class SecondaryMonitorDisplay extends St.Widget {
                 index: this._monitorIndex,
                 work_area: true,
             }),
+            clip_to_allocation: true,
         });
 
         this.connect('destroy', () => this._onDestroy());